﻿using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tSequenceFlow")]
[XmlRoot("sequenceFlow", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class SequenceFlow : FlowElement
{
    /// <remarks/>
    [XmlElement("conditionExpression")]
    public Expression ConditionExpression { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("sourceRef", DataType = "IDREF")]
    public string SourceRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("targetRef", DataType = "IDREF")]
    public string TargetRef { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("isImmediate")]
    public bool IsImmediate { get; set; } = default!;

    /// <remarks/>
    [XmlIgnore]
    public bool IsImmediateSpecified { get; set; } = default!;
}
